//
//  HomeTearchReplayCell.m
//  ChatDemo-UI2.0
//
//  Created by syun on 16/8/16.
//  Copyright © 2016年 syun. All rights reserved.
//

#import "HomeTearchReplayCell.h"

@implementation HomeTearchReplayCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        UIView *superView = self.contentView;
        
        _headView = [[XZHeaderImageView alloc] initWithFrame:CGRectMake(12, 9, 38, 38)];
        [superView addSubview:_headView];
        
        _nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(_headView.frame.origin.x+_headView.frame.size.width +10, 9, 200, 14)];
        _nameLabel.font = [UIFont systemFontOfSize:14];
        _nameLabel.textColor=RGBACOLOR(59, 59, 59, 1);
        _nameLabel.textAlignment=NSTextAlignmentLeft;
        [superView addSubview:_nameLabel];
        
        _timeLabel=[[UILabel alloc] initWithFrame:CGRectMake(SCREENWIDTH-100-12, 9, 100, 10)];
        _timeLabel.font = [UIFont systemFontOfSize:10];
        _timeLabel.textColor=RGBACOLOR(151, 151, 151, 1);
        _timeLabel.textAlignment=NSTextAlignmentRight;
        [superView addSubview:_timeLabel];
        
        
        _contentLabel=[[UILabel alloc]initWithFrame:CGRectMake(_nameLabel.frame.origin.x, _nameLabel.frame.origin.y+_nameLabel.frame.size.height+10, SCREENWIDTH-24-10-38, 0)];
        _contentLabel.font=[UIFont systemFontOfSize:13];
        _contentLabel.textColor=RGBACOLOR(59, 59, 59, 1);
        _contentLabel.textAlignment=NSTextAlignmentLeft;
        _contentLabel.numberOfLines=0;
        [superView addSubview:_contentLabel];
    }
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
